﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/naija.Master" CodeBehind="Default2.aspx.vb" Inherits="WebApplication11.Default2" 
    title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div><div id="LeftHorizantalDetails">
    <div class="UserImage"><div class="Justified">
        <asp:LoginView ID="LoginView1" runat="server">
            <AnonymousTemplate>
                <asp:Login ID="Login1" runat="server">
                    <LayoutTemplate>
                        <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                            <tr>
                                <td>
                                    <table cellpadding="0">
                                        <tr>
                                            <td align="center" style="color: #FF0066; font-weight: bold">
                                                Log In</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" 
                                                    style="font-weight: 700">User Name:</asp:Label>
                                            </td></tr>
                                           <tr> <td align="right">
                                                <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                    ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                    ToolTip="User Name is required." ValidationGroup="ctl11$Login1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" 
                                                    style="font-weight: 700">Password:</asp:Label>
                                            </td></tr>
                                           <tr> <td align="right">
                                                <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                    ControlToValidate="Password" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required." ValidationGroup="ctl11$Login1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" style="color:Red;">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" 
                                                    ValidationGroup="ctl11$Login1" />
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:ImageButton ID="NaijaStyle" runat="server" Height="36px" 
                                        ImageUrl="~/images/JoinNaijaStyle.png" PostBackUrl="~/Registration.aspx" 
                                        Width="185px" />
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                </asp:Login>
            </AnonymousTemplate>
            <LoggedInTemplate>
               <h3>Welcome Back </h3><h1> <asp:LoginName ID="LoginName1" runat="server" /></h1> 
               <asp:LoginStatus ID="LoginStatus1" runat="server" />
            </LoggedInTemplate>
        </asp:LoginView></div>
        
        </div>
    <div class="LeftAdvert"></div>
    </div>
<div id="MainContentDetails">

   <div class="ImageOfTheDay">
       <div class="ImageOfTheDayMain">
         
               <div style="border: thin none #FF0066; ">
                   <strong style="font-size: medium">NaijaTradStyles.com is a place to share your 
                   style with the world, and learn from others.</strong><br />
                      You can upload photos of yourself showing off fashion that makes you who you 
                   are. View and review fashion ordinary people all over the world. <div class="text">
                   </div>
                                  <div class="list"><strong>View the fashion/style</strong> of people from all over the world</div>

               <div class="pink_div">
     <div class="list2"><strong>Upload photos</strong> of yourself showing off your style</div>
                  
               
               <div class="pink_div">
                   <div class="list3">
                       <strong>Save, e-mail, print</strong> your favorite Traditional Styles</div>
               </div>
               <div class="pink_div">
                   <div class="list4">
                       <strong>Comment</strong> your favorite Styles or Blog what&#39;s on your mind
                   </div>
               </div>
               <div class="pink_div">
                   <div class="list5">
                       <strong>Watch</strong> your uploaded photos move to the top of the <strong>NaijaTradStyles Rank<br /></strong></div>
                 <div style="height: 229px; background-color: #CC0099;">  </div> 
                       
               </div>
       </div>

    </div>
    
    
    
    </div>

           <div class="TopTenInStock"><div class="TitleHeader">Last Style Uploaded</div>
              
                   <asp:SqlDataSource ID="RecentUploaded" runat="server" 
                   ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\pictures1.accdb;Persist Security Info=True" 
                   ProviderName="System.Data.OleDb" 
                   
                   SelectCommand="SELECT TOP 1 ID, Category, Style, Gender, Ethnic, Description, TodayDate, PicTitle, ProfileImage, UserName FROM UsersUpload ORDER BY ID DESC">
                   </asp:SqlDataSource>
                                        <asp:FormView ID="FormView1" runat="server" 
                   DataSourceID="RecentUploaded">
                                            <ItemTemplate>
                                                 <div 
    style="border-style:solid; border-color:red; border-size:1px; text-align:center; margin:5px;">
                               <asp:Image ID="Image1" runat="server" Height="380px" 
        ImageUrl='<%# Eval("ProfileImage") %>' Width="300px"  />
                           </div>
                           <div style=" text-align:center;">
                               <span style=" font-weight:bold; font-size: x-large;"><%# Eval("PicTitle")%>
                               </span>
                           </div>
                           <div style="margin-left:15px;">
                               <span style=" font-weight:bold;">Upload on:</span><%# Eval("TodayDate")%><br />
                               <span 
                               style=" font-weight:bold;">Uploaded by:</span><%# Eval("UserName")%></div>
                                            </ItemTemplate>
                                        </asp:FormView>
               </p>
       </div>
    </div>
    <div>
    <div id="News">News Goes Here</div>
    <div id="RecentUploadingSmall">
        <asp:ListView ID="ListView1" runat="server" DataSourceID="StyleUploaded" 
            EnableModelValidation="True" GroupItemCount="3">
            <AlternatingItemTemplate>
                <td id="Td1" runat="server" style="">
                     <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("ProfileImage") %>' Width="75px"  Height="75px" />
                </td>
            </AlternatingItemTemplate>
            
            <EmptyDataTemplate>
                <table id="Table1" runat="server" style="">
                    <tr>
                        <td>
                            No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <EmptyItemTemplate>
<td id="Td2" runat="server" />
            </EmptyItemTemplate>
            <GroupTemplate>
                <tr ID="itemPlaceholderContainer" runat="server">
                    <td ID="itemPlaceholder" runat="server">
                    </td>
                </tr>
            </GroupTemplate>
          
            <ItemTemplate>
                <td id="Td3" runat="server" style="">
                    <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("ProfileImage") %>' Width="75px"  Height="75px" />
                </td>
            </ItemTemplate>
            <LayoutTemplate>
                <table id="Table2" runat="server">
                    <tr id="Tr1" runat="server">
                        <td id="Td4" runat="server">
                            <table ID="groupPlaceholderContainer" runat="server" border="0" style="">
                                <tr ID="groupPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="Tr2" runat="server">
                        <td id="Td5" runat="server" style="">
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            
        </asp:ListView>
        <asp:SqlDataSource ID="StyleUploaded" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT TOP 15 [ProfileImage] FROM [UsersUpload] ORDER BY [ID] DESC, [TodayDate] DESC, [UserName]">
        </asp:SqlDataSource>
    </div>
    </div> 
    
    </div>
        </div>
    </asp:Content>
